<?php

class ViewHelper_Legend extends Zend_View_Helper_FormElement
{
   
    public function legend($name, $value = null, $attribs = null)
    {     
    	$info = $this->_getInfo($name, $value, $attribs);
        extract($info); // name, value, attribs, options, listsep, disable

       
        $xhtml = '<legend '            
                . $this->_htmlAttribs($attribs) . '>'
                . $name         
                 .'</legend>';
		
        return $xhtml;
    }
}
